<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>아이디 찾기-이름 및 주민등록번호입력하기</title>

<script type="text/javascript">
	function setCustSsn() {
		var custName = fm.custName.value; // 입력한 이름
		var jumin1 = fm.jumin1.value; //주민번호앞자리
		var jumin2 = fm.jumin2.value; //주민번호뒷자리

		if (custName == '') {
			alert('이름을 입력해주세요');
			return false;
		}

		else if (jumin1.length < 6 || jumin2.length < 7) {
			alert('주민등록번호를 확인하세요');
			return false;
		}

		return true;
		//document.getElementById("fm").submit();

	}
</script>
<style type="text/css">
#info {
	font-family: 맑은 고딕, dotum, sans-serif, bold;
	font-size: 13px
}
</style>



<style type="text/css">
<!--
@import url("/nems/css/style.css");
-->
</style>





<script type="text/javascript">
	function num_only() {
		if (((event.keyCode < 48) || (event.keyCode > 57))
				&& (event.keyCode != 110)) {
			event.returnValue = false;
		}
	}
</script>




</head>
<body>

	<div style="margin-left: 20px; margin-bottom: 30px" id="info">
		<div class="content_header">
			<br>
			<table align="left">
				<tr>

					<td><img src="/nems/cust/img/search.png" width="40"
						 /></td>
					<td><h4
							style="font-weight: bold; color: #005700; text-align: left; font-size: 20px;">아이디 찾기</h4></td>

				</tr>
			</table>
			<br><br><br>
	
			<p>내정보에 등록한 정보로 아이디를 찾을 수 있습니다.</p>
			
			

			<p>
				<strong>이름과 주민등록번호를 입력해주세요.</strong>
			</p>
			<hr width="670">
		</div>
		<div class="section">
			<form id="fm" name="fm" method="post" action="lookForCustId.cust">

				<div class="search_id">


					<table width="600" border="0">
						<tr align="left">
							<td width="300" height="40">이름</td>
							<td width="300"><input name="custName" title="이름입력" /></td>
						</tr>
						<tr align="left">
							<td width="300" height="40">주민등록번호</td>
							<td width="300"><input type="text" name="jumin1" id="jumin1"
								maxlength="6" onKeyPress="num_only()" size="9"> - <input
								type="password" name="jumin2" id="jumin2" maxlength="7"
								onKeyPress="num_only()" size="9"></td>
						</tr>
					</table>

					<hr width="670">
					<br> <br>
				</div>

				<button class="positive" style="width: 70px" type="submit"
					onclick="return setCustSsn()">
					<img src="cust/img/shopping_cart_accept.png"
						style="width: 20px; height: 10px" />확인
				</button>


			</form>
		</div>

	</div>

</body>
</html>